<template>
  <div>
        <!-- 头部 -->
        <div class="Stop">
            <div class="StopO">
                <i @click="Sbackto()" class="Stfan"></i>
                <p class="StopOne">确认订单</p>
                <!-- <p class="Stopmsg">编辑</p> -->
            </div> 
           
        </div>
        <!-- 订单内容 -->
        <div class="Stmain">
             <img class="Stblue" src="../../assets/user/blue1.png" alt="" >
            <div class="Sttop" @click="addres()">
                    添加收货地址
            </div>
            <img class="Stblue" src="../../assets/user/blue1.png" alt="">
            
        </div>
        <div class="Stmain2">
             <img class="Stxing" src="../../assets/user/xing.png" alt="">
            <div class="Sttop1">
            </div>
            <img class="Stxing" src="../../assets/user/xing.png" alt="">
        </div>
        <!-- 商品 -->
         <ul class="Smainco2">
              <li class="Sm">
                <span>
                  海外直邮订单
                </span>
              </li>
              <li  v-for="(item,index) in goods"  :key="index" >
                <div class="Sleft" v-if="index==0">
                  <img class="Smaincon" :src="item.src"   alt="">
                <div class="Smaincone">
                  <p class="Smaintop">
                    {{item.title}}
                </p>
                <p class="Smc">
                  规格：{{item.gg}}
                </p>
                <div class="Smco">
                  ￥
                  <span>{{item.money}}</span>
                  <span class="Shui">X1件</span>
                </div>
                </div>
                </div>
                
              </li>
              <li  v-for="(item,index) in goods"  :key="index" >
                <div class="Sleft" v-if="index>0" v-show="flage">
                  <img class="Smaincon" :src="item.src"   alt="">
                <div class="Smaincone">
                  <p class="Smaintop">
                    {{item.title}}
                </p>
                <p class="Smc">
                  规格：{{item.gg}}
                </p>
                <div class="Smco">
                  ￥
                  <span>{{item.money}}</span>
                  <span class="Shui">X1件</span>
                </div>
                </div>
                </div>
                
              </li>
              <li v-if="!flage" class="Smain1" @click="changemore()">
                <div class="Smainbo">
                  <p>
                      显示另外1件（共2件）
                      <i class="Stxia"></i>
                  </p>
                </div>
              </li>
              <li v-if="flage" class="Smain1" @click="changemore()">
                <div class="Smainbo">
                  <p>
                      收起
                      <i class="Stshang"></i>
                  </p>
                </div>
              </li>
         </ul>

         <!-- 结算 -->
         <ul class="Smainco">
              <li class="Smainto">
                <div>
                商品金额:
                </div>
                <div class="Smaincr">
                  ￥
                  <span>332.12</span>
                </div>
              </li>
              <li class="Smainto">
                <div>
                  订单邮费：
                </div>
                <div class="Smaincr">
                  ￥
                  <span>50.00</span>
                </div>
              </li>
              <li class="Smainto">
                <div>
                 关税：
                </div>
                <div class="Smaincr">
                  ￥
                  <span>10</span>
                </div>
              </li>
              <li class="Smainto">
                <div>
                 订单金额：
                </div>
                <div class="Smaincr">
                  ￥
                  <span>392.12</span>
                </div>
              </li>
              <li class="Sttixing">
                <span class="Smco Stbig">
                  安全提醒：
                </span>
                <span>
                 付款成功后，阿拉灯不会以付款异常、卡单、系统
升级为由联系您。请勿泄露银行卡号、手机验证码，否则会造成
钱款的损失。如有疑问请咨询客服，谨防电话诈骗！
                </span>
              </li>
         </ul>
         <!-- 配送方式 -->
        <ul class="Smainco Stmtop">
            <li class="Smainto">
                <div>
                    配送方式:
                </div>
                <div>
                    日本直邮
                </div>
            </li>
        </ul>
        <!-- 总价 协议 -->
        <ul class="Smainco Stmtop1">
            <li class="Smainto">
                <div>
                    共2件商品
                </div>
                <div>
                    应付：
                    <span class="Smco">
                        ￥
                        <span>392.12</span>
                    </span>
                </div>
            </li>
            <li class="Stbot">
                <i class="Sma" @click="changei()" :class="{Sma1:flages}"></i>
                <p class="Stpro">
                    本人同意并接受
                    <span class="Smco">《个人委托协议》</span>
                    和
                    <span class="Smco">《用户协议》</span>
                </p>
                <button class="Stbut">确认</button>
            </li>
        </ul>

  </div>
</template>

<script>
export default {
    name:'Strue',
     data(){
      return{
        flage:false,
        flages:false,
        // 商品
        goods:this.$store.state.some[0],
      }
    },
    methods:{
        // 显示更多
        changemore(){
            this.flage = !this.flage;
        },
        // 按钮
      changei(){
        this.flages = !this.flages;
      },
      Sbackto(){
        this.$router.replace('/shoppings');
      },
      addres(){
        this.$router.replace('/address');
        console.log(1);
      }
    },
}
</script>

<style  scoped>
/* 头部 */
.Stop {
    background-color: #e53e42;
    width: 100%;
    height: 9.6rem;
    color: #fff;
    font-size: 3.6rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}
.StopO {
    height:9.6rem;
    padding: 0 2rem;
    line-height: 9.6rem;
    text-align: left;
}
.StopOne {
    position: absolute;
    z-index: 2;
    top: 50%;
    margin-top: -4.8rem;
    left: 50%;
    margin-left: -9.4rem;
}
.Stopmsg {
    position: absolute;
    right: 2rem;
    top: 0;
    top: 2rem;
    margin-top: -1.9rem;
    line-height:9.6rem ;
}
/* < */
.Stfan {
    width: 2.5rem;
    height: 2.5rem;
    border-left: 0.2rem solid #fff;
    border-bottom: 0.2rem solid #fff;
    display: inline-block;
    transform: rotate(45deg);
}
  /* 内容 */
  .Stmain {
      margin-top: 11.6rem;
      background: #fff;
  }
  .Stmain2 {
      margin-top: 1.8rem;
      background: #fff;
  }
  /* 添加收获地址 */
  .Sttop {
      height: 10rem;
      line-height: 10rem;
      font-size: 2.8rem;
      text-align: left;
      margin: 0 2rem;
      padding-left: 7.2rem;
      background: url(../../assets/user/jia.png) no-repeat 0 2.6rem;
      color: #808080;
  }
  .Sttop1 {
      height: 10.8rem;
      line-height: 10rem;
      font-size: 2.8rem;
      text-align: left;
      margin: 0 2rem;
      color: #808080;
  }
  /* 蓝杠 */
  .Stblue {
      width: 100%;
  }
  /* 五角星 */
  .Stxing {
      width: 100%;
  }
  /* 商品 */
  .Smainco2 {
    text-align: left;
    font-size: 2.8rem;
    border-top: 1px solid #cccccc;
    /* border-bottom: 1px solid #ccc;  */
    background: #fff;
    color: #4d4d4d;
    margin-top: 2rem;
  }
  .Sm {
    height: 8.1rem;
    line-height: 8.1rem;
    padding: 0 2rem;
    border-top: 1px solid #cccccc;
  }

  .Sleft {
    height: 20rem;
    line-height: 3.4rem;
    padding: 0 2rem;
    border-top: 1px solid #cccccc;
    display: flex;
    align-items: center;
  } 
  .Smaincon {
    margin-left: 6.7rem;
    margin-right: 3.2rem;
  }
  
  .Smaincone {
    display: flex;
    flex-direction: column;
    justify-self: start;
    margin-right: 10.9rem;
  }
  .Smaintop {
    margin-bottom: 1rem;
  }
  .Smc {
    color: #8c8c8c;
  }
   .Smco {
    margin-top: 2rem;
    color: #e53e42;
  }
  .Shui {
    color: #808080;
    margin-left: 3.4rem;
  } 
  .Smain1 {
    padding: 1.6rem 2rem;
    display: flex;
    font-size: 2.8rem;
    border-top: 1px solid #cccccc;
     flex-direction: row;
    justify-content: center;
  }
  .Smainbo {
      color: #666;
  }
  /* 查看更多 */
  .Stshang {
      width: 1.8rem;
      height: 1.8rem;
      border-left: 0.2rem solid #666;
      border-top: 0.2rem solid #666;
      display: inline-block;
      transform: rotate(45deg);
      margin-left: 2rem;
      margin-bottom: -0.3rem;
  }
  .Stxia {
      width: 1.8rem;
      height: 1.8rem;
      border-right: 0.2rem solid #666;
      border-bottom: 0.2rem solid #666;
      display: inline-block;
      transform: rotate(45deg);
      margin-left: 2rem;
      margin-bottom:0.6rem;
  }
  /* 结算 */
  .Smainco {
    text-align: left;
    font-size: 2.8rem;
    border-top: 1px solid #cccccc;
    /* border-bottom: 1px solid #ccc;  */
    background: #fff;
    color: #4d4d4d;
    margin-top: 1.8rem;
  }
  .Smainto {
    padding: 1.7rem 2rem;
    display: flex;
    justify-content: space-between;
    position: relative;
    font-size: 2.8rem;
    border-top: 1px solid #cccccc;
  }
  .Smaincr {
    color: #e53e42;
  }
  .Sttixing {
    padding: 1.7rem 2rem;
    font-size: 2.4rem;
    border-top: 1px solid #cccccc;
    color: #666;
    line-height: 3.2rem;
  }
  .Stbig {
      font-size: 2.8rem;
  }
  /* 配送方式 */
  .Stmtop {
      margin-top: 2rem;
      border: none;
  }
  .Stmtop1 {
       margin-top: 7.8rem;
  }
  /* 圆形按钮 */
  .Sma {
    display: inline-block;
    height: 3rem;
    width: 3rem;
    vertical-align: middle;
    background: url(../../assets/user/g-gui.png) 0 0;
    margin-top: 0.5rem;
    color: #4d4d4d;
    position: absolute;
  }
  .Sma1 {
    background: url(../../assets/user/g-gui.png) no-repeat -3.6rem 0;
    position: absolute;
  } 
  .Stbut {
      width: 100%;
      margin-top: 9rem;
      height: 4rem;
      border-radius: 5rem;
      background: #e53e42;
      color: #fff;
      font-size: 2.8rem;
      line-height: 4rem;
  }
  .Stbot {
    padding: 1.7rem 2rem;
    position: relative;
    font-size: 2.8rem;
    border-top: 1px solid #cccccc;
  }
  .Stpro {
      position: absolute;
      margin-left: 4.2rem;
      
  }
</style>